using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Data;


/// <summary>
/// Summary description for Service
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService {
    protected clsCard card;
    public Service () {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public bool CheckAccountExists(string Owner, string code, DateTime expiredDate, string typeCard)
    {
        card = new clsCard();
        card.Owner = Owner;
        card.Code = card.Card_encode_toByte(code);
        card.ExpiredDate = expiredDate;
        return card.checkCardExists(typeCard);
    }

    [WebMethod]
    public DataSet GetAccountList()
    {
        card = new clsCard();
        DataSet ds = card.getListAccount();
        return ds;
    }
    
}

